package com.huitone.gddw.service.dto.monitoring.environment;

import java.util.Date;

/**
 * 封装对象监控的信息
 * @author wuluodan
 *
 */
public class EnvDTO {

	private String objId;
	
	private String objName;
	
	private String itemId;
	
	private String key;
	
	private String keyCn;
	
	private String applications;
	
	private Integer seq;
	
	private String valueText;
	
	private Integer valueInt;
	
	private String value;
	
	private Integer clock;
	
	private Long warnCount; // 预警数
	
	private String recvMan; // 预警接收人
	
	private Date clockTime;

	public String getObjId() {
		return objId;
	}

	public void setObjId(String objId) {
		this.objId = objId;
	}

	public String getObjName() {
		return objName;
	}

	public void setObjName(String objName) {
		this.objName = objName;
	}

	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getKeyCn() {
		return keyCn;
	}

	public void setKeyCn(String keyCn) {
		this.keyCn = keyCn;
	}

	public String getApplications() {
		return applications;
	}

	public void setApplications(String applications) {
		this.applications = applications;
	}
	
	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public String getValueText() {
		return valueText;
	}

	public void setValueText(String valueText) {
		this.valueText = valueText;
	}

	public Integer getValueInt() {
		return valueInt;
	}

	public void setValueInt(Integer valueInt) {
		this.valueInt = valueInt;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Integer getClock() {
		return clock;
	}

	public void setClock(Integer clock) {
		this.clock = clock;
	}

	public Long getWarnCount() {
		return warnCount;
	}

	public void setWarnCount(Long warnCount) {
		this.warnCount = warnCount;
	}

	public String getRecvMan() {
		return recvMan;
	}

	public void setRecvMan(String recvMan) {
		this.recvMan = recvMan;
	}
	
	public String getUserName() {
		return getsplit() == null ? "" : getsplit()[1];
	}

	public String getPhoneNumber() {
		return getsplit() == null ? "" : getsplit()[2];
	}

	public String getMailBox() {
		return getsplit() == null ? "" : getsplit()[3];
	}
	
	public String[] getsplit() {
		if (null == this.recvMan) {
			return null;
		}
		return this.recvMan.split(",");
	}

	public Date getClockTime() {
		return clockTime;
	}

	public void setClockTime(Date clockTime) {
		this.clockTime = clockTime;
	}
	
}
